package com.javasm.adminapi.module.pricecheck.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.adminapi.module.pricecheck.entity.GgAdjustCheck;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**
 * (GgAdjustCheck)表数据库访问层
 *
 * @author makejava
 * @since 2025-10-18 09:43:21
 */
public interface GgAdjustCheckDao extends BaseMapper<GgAdjustCheck> {


    @Select("select * from gg_adjust_check where adjust_id=#{adjustId} ")
    @Results(id="getAdjustReport",value = {
            @Result(property = "ggPriceAdjust",column = "adjust_id",
            one = @One(select = "com.javasm.adminapi.module.priceadjust.dao.GgPriceAdjustDao.selectById")),
            @Result(property = "adjustId",column = "adjust_id")
    })
    GgAdjustCheck getAdjustReport(Integer adjustId);
}

